const db = require('./config/database')

async function checkDBStructure () {
  try {
    console.log('检查novels表结构...')
    const structure = await db.query('DESCRIBE novels')
    console.log('novels表结构:', structure)

    console.log('\n检查novels表中的数据...')
    const data = await db.query('SELECT * FROM novels LIMIT 2')
    console.log('novels表数据:', data)
  } catch (error) {
    console.error('检查失败:', error)
  } finally {
    process.exit(0)
  }
}

checkDBStructure()
